package com.hwd.gmall.product.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * 商品微服务首页分类查询的远程feign接口
 *
 * @author 黄伟东/Victor
 * @date 2022/4/26 16:48
 */
@FeignClient(value = "service-product", path = "/index/product", contextId = "productIndexFeignClient")
public interface ProductIndexFeignClient {

    /**
     * 查询首页分类信息
     *
     * @return java.util.List<com.alibaba.fastjson.JSONObject>
     */
    @GetMapping(value = "/getIndexCategory")
    List<JSONObject> getIndexCategory();
}
